home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / AmigaUUCP / uucico / sysdep.h < prev    next >
C/C++ Source or Header  |  1990-02-02  |  2KB  |  67 lines

  1.  
  2. /*
  3.  *  SYSDEP.H
  4.  *
  5.  *  $Header: Beta:src/uucp/src/uucico/RCS/sysdep.h,v 1.1 90/02/02 11:55:55 dillon Exp Locker: dillon $
  6.  *
  7.  * Amiga Port by William Loftus
  8.  * Changes are Copyright 1988 by William Loftus. All rights reserved.
  9.  *
  10.  * Declarations of gnuucp's system-dependent routines, which
  11.  * are in the file sysdep.c (a link to one of many system dependent
  12.  * implementations).
  13.  */
  14.  
  15. void    munge_filename();
  16.  
  17. /*
  18.  * Basement level I/O routines
  19.  *
  20.  * xwrite() writes a character string to the serial port
  21.  * xgetc() returns a character from the serial port, or an EOF for timeout.
  22.  * sigint() restores the state of the serial port on exit.
  23.  * openline() opens a serial port for an incoming call, waiting for carrier.
  24.  * openout() opens a serial port for an outgoing call.
  25.  */
  26. int xwrite();           /* filedesc, buffer, count */
  27. int xgetc();            /* No arg */
  28. int sigint();          /* No arg */
  29. void openline();        /* ttyname */
  30. int openout();          /* ttyname */
  31. void amiga_setup();     /* No arg */
  32.  
  33.  
  34. /*
  35.  * Uucp work queue scan.
  36.  *
  37.  * gotsome = work_scan(hostname);
  38.  *
  39.  * Result is 1 if there is work, 0 if none.  If result is 1, and work_scan
  40.  * is called a second time without an intervening work_done, it won't
  41.  * rescan the directory but simply returns a 1.
  42.  *
  43.  * workfile = work_next();
  44.  *
  45.  * Result is char * to static filename; or NULL if no more.
  46.  * We only read the directory once.  If callers want more to rescan it
  47.  * in case more work is here, they should call work_scan again.
  48.  *
  49.  * void work_done();
  50.  * Clean up a work scan.  No need to call this if work_next returned NULL;
  51.  * it has cleaned up.
  52.  */
  53. extern int work_scan();
  54. extern char *work_next();
  55. extern void work_done();
  56.  
  57. /* SERIAL PORT DELARATIONS ALSO TIMER */
  58. extern struct MsgPort *CreatePort();
  59. extern struct IOExtSer *Read_Request;
  60. extern unsigned char rs_in[2];
  61. extern struct IOExtSer *Write_Request;
  62. extern unsigned char rs_out[2];
  63. extern struct timerequest Timer;
  64. extern struct MsgPort *Timer_Port;
  65.  
  66.  
  67.